# $OpenBSD: Makefile,v 1.12 2014/01/14 14:27:10 sthen Exp $

COMMENT-main =	Wireless Networking in the Developing World, English edition
COMMENT-es =	Wireless Networking in the Developing World, Spanish edition
COMMENT-fr =	Wireless Networking in the Developing World, French edition
COMMENT-ar =	Wireless Networking in the Developing World, Arabic edition
COMMENT-pt =	Wireless Networking in the Developing World, Portuguese ed.
COMMENT-id =	Wireless Networking in the Developing World, Indonesian ed.
COMMENT-my =	Wireless Networking in the Developing World, Burmese ed.

PKGNAME-main =	wndw-3.0
PKGNAME-es =	wndw-es-3.0
PKGNAME-fr =	wndw-fr-2.0
PKGNAME-ar =	wndw-ar-2.0
PKGNAME-pt =	wndw-pt-1.0
PKGNAME-id =	wndw-id-2.0
PKGNAME-my =	wndw-my-3.0

REVISION-ar=	0

DISTNAME =	wndw

CATEGORIES =	books net

# Creative Commons Attribution-ShareAlike 3.0
PERMIT_PACKAGE_CDROM =	Yes

MULTI_PACKAGES =-main -es -fr -ar -pt -id -my

MAINTAINER =	Stuart Henderson <sthen@openbsd.org>

# High resolution print-ready PDFs are also available at the homepage
# e.g. http://wndw.net/pdf/wndw3-en/wndw3-print.pdf (English edition).
# Also available as printed books.
HOMEPAGE =	http://wndw.net/

MASTER_SITES =	${HOMEPAGE}pdf/wndw3-en/
MASTER_SITES0 =	${HOMEPAGE}pdf/wndw3-es/
MASTER_SITES1 =	${HOMEPAGE}pdf/wndw2-fr/
MASTER_SITES2 =	${HOMEPAGE}pdf/wndw2-ar/
MASTER_SITES3 =	${HOMEPAGE}pdf/wndw-pt/
MASTER_SITES4 =	${HOMEPAGE}pdf/wndw-id/ \
		http://opensource.telkomspeedy.com:5432/furusato/files/
MASTER_SITES5 =	${HOMEPAGE}pdf/wndw3-my/

DISTFILES =	wndw3-ebook.pdf \
		wndw3-cover.pdf \
		wndw3-es-ebook.pdf:0 \
		wndw2-fr-ebook.pdf:1 \
		wndw2-ar-ebook.pdf:2 \
		wndw-pt-ebook.pdf:3 \
		wndw-id-ebook.pdf:4 \
		wndw3-my-ebook.pdf:5

EXTRACT_ONLY =

PKG_ARCH =	*

NO_BUILD =	Yes
NO_TEST =	Yes

do-install:
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/wndw
.for i in ${DISTFILES:C/\:[0-9]//}
	${INSTALL_DATA} ${FULLDISTDIR}/$i ${PREFIX}/share/doc/wndw
.endfor

.include <bsd.port.mk>
